package ${package}.service;

import java.util.List;
import com.billionsfinance.crs.request.PageReuqest;
import com.billionsfinance.crs.model.PageResult;
import com.billionsfinance.crs.model.ResponseModel;

import ${package}.model.${tableMeta.modelName};

/**
* 
* @fileName:${tableMeta.modelName}Service.java
* @author:${createdName}
* @date:${createdTime}
* @version:V1.00
*/
public interface ${tableMeta.modelName}Service {

	/**
	 * 查询${modelName}列表
	 * @param model 
	 * @return List   
	 * @throws Exception 异常 
	 */
	List<${tableMeta.modelName}> find${tableMeta.modelName}List(${tableMeta.modelName} model) throws Exception;
	
	/**
	 * 分页查询
	 * @param model
	 * @param pageV0  
	 * @return PageResult  
	 * @throws Exception 异常  
	 */
	PageResult<${tableMeta.modelName}> select${tableMeta.modelName}Set(${tableMeta.modelName} model, PageReuqest pageV0) throws Exception;

    /**
    *新增或修改${tableMeta.modelName}
    *@param model 
    *@return int 受影响的行数 
    *@throws Exception 异常  
    */
     int  createOrUpdate${tableMeta.modelName}(${tableMeta.modelName} model) throws Exception;
     
    /**
    *新增或修改${tableMeta.modelName}
    *@param model 
    *@return ResponseModel 受影响的行数和处理过后的Module
    *@throws Exception 异常 
    */
    ResponseModel createOrUpdate(${tableMeta.modelName} model) throws Exception;
    
    /**
    *根据ID查询${tableMeta.modelName}
    *@param id 要查询的对象的ID
    *@return ${tableMeta.modelName} 
    *@throws Exception 异常  
    */
    ${tableMeta.modelName} find${tableMeta.modelName}ById(Long id) throws Exception;
    
    /**
    *逻辑删除${tableMeta.modelName}
    *@param id 
    *@return int 受影响条数
    *@throws Exception 异常  
    */
    int delete${tableMeta.modelName}ById(Long id) throws Exception;
    
    /**
    *物理删除${tableMeta.modelName}
    *@param id
    *@return int 受影响条数
    *@throws Exception 异常   异常
    */
    int physicalDelete${tableMeta.modelName}ById(Long id) throws Exception;
    
}
